package demo;

import java.nio.file.Path;
import java.nio.file.Paths;


public class NIO2 {
    public static void main(String[] args) {
        Path path = Paths.get("demo.js");
        Path fileName = path.getFileName();
        System.out.println(path.getParent());
        System.out.println(fileName);
        
    }
}
